package vno.fux.res.manager
{
	public class ResourceMission
	{
		private var _url:String;
		private var _target:ILoadTarget;
		private var _loadType:String;
		private var _targetHost:ITargetHost;
		private var _id:uint;
		private var _retryTimes:uint;
		public function ResourceMission(url_:String, target_:ILoadTarget, loadType_:String, targetHost_:ITargetHost=null, id_:uint=0, retryTimes_:uint=1)
		{
			_url		= url_;
			_target		= target_;
			_loadType	= loadType_;
			_targetHost	= targetHost_;
			_id			= id_;
			_retryTimes	= retryTimes_;
		}

		public function get retry():uint
		{
			return _retryTimes;
		}

		public function set retry(value:uint):void
		{
			_retryTimes = value;
		}

		public function get url():String
		{
			return _url;
		}
		public function get target():ILoadTarget
		{
			return _target;
		}
		public function get host():ITargetHost
		{
			return _targetHost;
		}
		public function get loadType():String
		{
			return _loadType;
		}
		public function get id():uint
		{
			return _id;
		}
		public function toString():String
		{
			return _url+"id:"+_id;
		}

	}
}